package org.jeecg.modules.lab.exam.exam.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.lab.exam.entity.LabExam;
import org.jeecg.modules.lab.exam.entity.LabExamDepart;
import org.jeecg.modules.lab.exam.entity.LabExamRepo;
import org.jeecg.modules.lab.exam.exam.vo.LabExamPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 考试信息主表
 * @Author: jeecg-boot
 * @Date:   2023-08-26
 * @Version: V1.0
 */
public interface ILabExamService extends IService<LabExam> {

	/**
	 * 添加一对多
	 *
	 * @param labExam
	 * @param labExamDepartList
	 * @param labExamRepoList
	 */
	public void saveMain(LabExam labExam, List<LabExamDepart> labExamDepartList, List<LabExamRepo> labExamRepoList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param labExam
	 * @param labExamDepartList
	 * @param labExamRepoList
	 */
	public void updateMain(LabExam labExam,List<LabExamDepart> labExamDepartList,List<LabExamRepo> labExamRepoList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 查看考试列表
	 *
	 * @param userId
	 */
	public List<LabExamPage> selectExamListByUserId(String userId);
}
